# -*- coding: utf-8 -*-#
#-------------------------------------------------------------------------------
# 建立者:        潘炎珍  
# Name:         hw01
# Description:
# Author:       98745
# Date:         2019/4/4
#-------------------------------------------------------------------------------

import re
s='[a-zA-Z]{3}'
list=['bat','Bit','But','hAt','hit','hut']
for i in list:
    m=re.search(s,i)
    if m is not None:
        print('{}匹配成功'.format(m.group()))
    else:
        print('{}匹配不成功'.format(i))

        